package com.dongdongshop.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.dongdongshop.mapper.TbPayLogMapper;
import com.dongdongshop.pojo.PayLogVo;
import com.dongdongshop.pojo.TbPayLog;
import com.dongdongshop.service.PayLogService;

import javax.annotation.Resource;

@Service
@org.springframework.stereotype.Service
public class PayLogServiceImpl implements PayLogService {
    @Resource
    private TbPayLogMapper tbPayLogMapper;

    @Override
    public void addinfo(TbPayLog tbPayLog) {
        tbPayLogMapper.insertSelective(tbPayLog);
    }

    @Override
    public PayLogVo toRefund(Long orderId) {
        return tbPayLogMapper.toRefund(orderId);
    }
}
